<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddCommentToThesisesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
		Schema::table('thesises', function (Blueprint $table) {
			$table->string('comment', 500)->default("");
			$table->string('advice', 500)->default("");
			$table->integer('grade')->default(0);
		});
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
		Schema::table('thesises', function (Blueprint $table) {
			$table->dropColumn('comment');
			$table->dropColumn('advice');
			$table->dropColumn('grade');
		});
    }
}
